package com.atguigu.lease.web.admin.service;

import com.atguigu.lease.model.entity.RoomInfo;
import com.atguigu.lease.web.admin.vo.room.RoomDetailVo;
import com.atguigu.lease.web.admin.vo.room.RoomItemVo;
import com.atguigu.lease.web.admin.vo.room.RoomQueryVo;
import com.atguigu.lease.web.admin.vo.room.RoomSubmitVo;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;

/**
* @author liubo
* @description 针对表【room_info(房间信息表)】的数据库操作Service
* @createDate 2023-07-24 15:48:00
*/
public interface RoomInfoService extends IService<RoomInfo> {
    /*
    * 分页及带条件的查询
    * @param roomItemVoPage
    * @param queryVo
    * @return
    * */

    IPage<RoomItemVo> getPageList(Page<RoomItemVo> roomItemVoPage, RoomQueryVo queryVo);

    /*
* 保存或更新房间信息
* @param roomSubmitVo
*
* */
    void saveOrUpdateRoomInfo(RoomSubmitVo roomSubmitVo);

    /*
    * 根据id删除房间信息
    * @param id
    * */

    void deleteRoomInfoById(Long id);

    /*
    * 根据id查询房间详情
    * @param id
    * @return
    * */

    RoomDetailVo getRoomDetailVoById(Long id);
}
